package cn.tedu.submarine;

import javax.swing.*;
import java.util.Random;

/** 水雷潜艇 */
public class MineSubmarine extends SeaObject implements EnemyLife{

    public     MineSubmarine(){
                super(66,26);
            }
    public void move(){
        x+=speed;//x+(向右)
    }
    public  ImageIcon getImage(){
            return Images.minesubm;
    }
    public int getLife(){
        return 1;
    }


    public Mine shootMine(){
        int x = this.x+this.width;
        int y = this.y-5;
        return new Mine(x,y);
    }

}


